Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • QtMulitmediaKit on Ubuntu 12.10 and Windows

    5
    0 Votes
    5 Posts
    2k Views
    JKSHJ
    The Ubuntu maintainers changed the packaging of Qt's multimedia components, so it's different from other distros out there. I was never able to successfully get multimedia working on Ubuntu myself. But, see if this helps: http://qt-project.org/forums/viewthread/5348
  • Debugging Proxy Not Found error - trying to set a transparent FTP proxy

    2
    0 Votes
    2 Posts
    2k Views
    C
    I have been looking into this a little more, and I am now wondering if it is possible to do this :( Looking at QNetworkAccessFtpBackend::open() , it seems that this will only work through NoProxy or an FtpCachingProxy Also, I have looked into some of the proxy code, and in qnetworkproxy_win.cpp, in parseServerList, it looks like the only possible returns are HttpProxys, or Socks5Proxys Am I right in thinking that this is essentially not supported on windows? :(
  • Creating a library

    3
    0 Votes
    3 Posts
    1k Views
    G
    Hi Thanks but that was a c&p error the .pro file does say TEMPLATE
  • Minimizing window to tray will not lower the memory used!

    9
    0 Votes
    9 Posts
    3k Views
    A
    Well, not quite true about the containers. QVector has a squeeze() method to free up unused memory.
  • How to link exit menu to the mainwindow's destructor

    2
    0 Votes
    2 Posts
    2k Views
    A
    You can't "link" it to destructor. Use separate slot for that, call "deleteLater":http://qt-project.org/doc/qt-4.8/qobject.html#deleteLater on window, and close it... Or reimplement "closeEvent":http://qt-project.org/doc/qt-4.8/qwidget.html#closeEvent to do needed cleanups.
  • [Solved] How to get the list of test cases in a test class- Unit Testing.

    9
    0 Votes
    9 Posts
    3k Views
    S
    Hi, I have another question. Is there any way to skip any particular test case/function while running the test using QTest::qExec(). The scenario is that i have listed the test functions in a treeView with checkbox as a QStandardItem, So foreach testClass the associated testFunctions are listed. Now the requirement is to test only those cases/functions that are checked and the other's should be skipped. I have tried @testCmd<<" " << QString("%1").arg(childItem->text())<<"-xml" <<"-o" <<QString("UnitTest_Results/%1_log.xml").arg(className); QTest::qExec(plugin->testList().at(pRow),testCmd);@ this generates an xml output but the xml.file is overwritten for each test function and at the end displays the result of the last checked item. Thanks.
  • [Solved] dataChanged emitted before data being changed in model

    5
    0 Votes
    5 Posts
    2k Views
    S
    Fantastic!!! That worked alexisdm! Thanks so much for the tip!
  • Too many/big images --&gt; images are black

    3
    0 Votes
    3 Posts
    1k Views
    N
    Thanks for your reply! I changed the amount of memory used by the graphic card and now it works.
  • [Solved]QPixmap being clipped after rotation

    2
    0 Votes
    2 Posts
    1k Views
    S
    After struggling of several hours, I find out that my scaling methods has some bugs, sorry to bother you all.
  • Boost autolink searches for wrong MSVC Version in QtCreator/qmake

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Extract information from get_video_info

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    4 Posts
    3k Views
    I
    I understand now :) You want to select a set of items in a GraphicsView by pressing and moving the mouse, simultaneously. I think the solution is like when you draw a line by pressing/moving the mouse. You can see the diagramscene example, to get an idea. In the other hand I know a libre soft that uses this trick. You can get its source here [Umbrello UML Modeller]http://uml.sourceforge.net/ Good luck !
  • Call to arms: Bringing Qt 5's documentation up to professional quality

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED]problem with resources: file not found

    6
    0 Votes
    6 Posts
    21k Views
    G
    Same issue with demo compilations windows in mingw compilation. Checked syntax's and declarations right, gives an qrc_xyz.cpp "file not found error" when compiling xyz.qrc in the same directory for .png files.
  • How do i set context menu language?

    2
    0 Votes
    2 Posts
    3k Views
    M
    As always, install the translator using QApplication::installTranslator(); Of course, when you create your context menu, you'll have to use tr(), like myMenu->addAction(tr("Copy")) instead of just myMenu->addAction("Copy"), in order to make them translatable. And then you will also have to translate the new strings in your TS/QM file. And: Don't forget to re-translate after installing a new translator!
  • [Solved] QTreeView CheckBox checked:unchecked signal ?

    1
    0 Votes
    1 Posts
    10k Views
    No one has replied
  • How to customize the looking of scrollbar?

    3
    0 Votes
    3 Posts
    6k Views
    J
    Hi, tucnak. Thanks for your help. My QSS removes all the arrows from the scrollbar with setting height or width to zero and show only the background and the handle. But I could not customize the handle itself, since background-image could not work. And it is possible to stylesheet own customized Widget if you overload the paintEvent method to draw the QStyle::PE_Widget. Anyway, I have never made my own style and now I'll give it a try.
  • [Solved] How to set the PlaceHolderText for a TextEdit?

    16
    0 Votes
    16 Posts
    28k Views
    M
    Thanks a lot jazzycamel.. :-)
  • [Solved]Can't show the image with default size after calling fitInView

    2
    0 Votes
    2 Posts
    910 Views
    S
    I solved the problem @ graph_pixmap_->setPixmap(QPixmap::fromImage(image)); graph_scene_->setSceneRect(image.rect()); graph_view_->resetMatrix(); //call this @ because fitInView would change the matrix, so I should reset it every time I open the image, thanks
  • [Solved]et the size of the QGraphicsView

    2
    0 Votes
    2 Posts
    1k Views
    S
    I just find the answer, size() and viewport()->size() whatevever, I need to find out the different of these size.Thanks