Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Problem with custom signals and slots

    8
    0 Votes
    8 Posts
    4k Views
    C
    Run your program and look at the output it generates to the console or debug window. You will find there is a message similar to this: bq. Object::connect: No such slot YourClass::onDeviceDiscovered(const QextPortInfo &) indicating that it is not working. Connections happen at run time not compile time. To write a slot you declare a function in a class derived from QObject and then you implement it. It's just a C++ member function. To make it a slot you simply add the "slots" pseudo-keyword to the relevant access specifier. Here is a simple example with a slot called setValue(int): http://qt-project.org/doc/qt-4.8/signalsandslots.html#a-small-example You need to declare YourClass::onDeviceDiscovered(const QextPortInfo &info) and provide an implementation. In that implementation you can update the combo box.
  • Dynamic Plugin Help

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [.UI/FORM] How to Remove Elements fram the layout?

    10
    0 Votes
    10 Posts
    3k Views
    M
    Take a look at "QStackedWidget":/doc/qt-4.8/qstackedwidget.html. Maybe that might save you some effort. Edit: Or possibly "QStackedLayout":/doc/qt-4.8/qstackedlayout.html
  • QDir problem

    11
    0 Votes
    11 Posts
    4k Views
    A
    ok tnx a lot
  • Text interaction flags are not working

    2
    0 Votes
    2 Posts
    3k Views
    T
    Since I can't seem to get it working correctly I am working around the issue. I am listening for selectionChanged() on the QTextBrowser and then taking the QTextBrowser's QTextDocument and calling clearSelection() on its QTextCursor. Possible related bug: "https://bugreports.qt-project.org/browse/QTBUG-1186":https://bugreports.qt-project.org/browse/QTBUG-1186
  • Problem with encoding (INSERT) in oracle db on windows

    2
    0 Votes
    2 Posts
    2k Views
    K
    try query.bindValue( QString(":texte_original"), tr("essais ") );
  • How to make signal slot work faster

    6
    0 Votes
    6 Posts
    4k Views
    A
    That is going to be a problem then: your GUI thread is obviously very bussy with the webview and the embedded video. There is not much you can do about that. Sorry.
  • 0 Votes
    5 Posts
    4k Views
    V
    Thanks for the link: I hadn't seen it on my search. I added a line to each .pro file in the subdirs template project. Thanks!
  • QWidget + C++ Class Controller --> POINTER PROBLEMS?

    4
    0 Votes
    4 Posts
    3k Views
    D
    Thanks mlong, thanks again Andre... I reading some online documentation and some free books of c++, but I could not understand how to create a class using a getter and setter referenced (it's right?). Off course I really think that it's a good idea, but like always my term in sort to show something to my client, and I'm studying and Working at same time... Thanks!
  • Rewrite in Qt an existing Delphi graphics application

    2
    0 Votes
    2 Posts
    3k Views
    L
    Have a look at [[doc:QGlWidget]] and [[doc:QGraphicsView]]
  • 0 Votes
    9 Posts
    8k Views
    A
    Sounds like a good suggestion. You might: create a bugreport with your suggestion Better yet, a patch for now, create a doc note on this.
  • Adding GLWidgets at runtime

    3
    0 Votes
    3 Posts
    1k Views
    A
    [quote author="AndreAhmed" date="1341314891"]Is there any idea guys ?[/quote] Don't "kick" your topics, especially this fast. Allow at least two days, but idealy up to a week for people to answer.
  • 0 Votes
    4 Posts
    2k Views
    A
    Nope. In QML, this would be trivial, but in the widget world these kinds of scenario's were not taken into account.
  • Change close button in windowsTitleBar

    7
    0 Votes
    7 Posts
    3k Views
    A
    ok tnx alot
  • Mac Main Window demo bug - search field doesn't lose focus

    1
    0 Votes
    1 Posts
    829 Views
    No one has replied
  • How to use SHARED MEMORY between QT and MySQL Server

    2
    0 Votes
    2 Posts
    2k Views
    V
    Tell us when the preferred PIPE, SHARED MEMORY, and when the LOAD DATA INFILE. Maybe there are those who have tried all the options
  • Getting mouse events on all GLWidgets

    6
    0 Votes
    6 Posts
    2k Views
    T
    [quote author="AndreAhmed" date="1341306224"]I have posted another topic, would love to see your reply.[/quote] Just now I am busy, but in 20 minutes I will free and will try to answer;)
  • QT Gui Application, alingment and/or anchoring...

    23
    0 Votes
    23 Posts
    14k Views
    A
    [quote author="dcbasso" date="1341259385"]Sorry, my layout was missing the layout component to handle with added widget![/quote] So... it is solved?
  • 0 Votes
    6 Posts
    6k Views
    P
    FYI: I finally was able to display U+FFFF code points by explicitly setting the QLabel, QTextEdit, or QLineEdit style sheets as follows: @ font-family: "Segoe UI","Cambria Math";@ where Cambria Math is a font that contains the U+FFFF code points on my system. For some reason the font matching algorithm doesn't find Cambria Math on my system unless the font-family explicitly includes a font with code points above U+FFFF. With the above font-family declaration my text is rendered as Sagoe UI except for the U+FFFF code points which is rendered as Cambria Math. Note: I tried setting various combinations of font families and styles but the above was the only method that worked. Even setting the font-family or directly setting the font to Cambria failed to find the U+FFFF code points. I also checked on the lastResortFont(). It always came out as arial no matter how the font or font-family is set. I had hoped that I could set the last resort font to Cambria Math so I wouldn't have to worry about setting the stylesheet but I don't know where this parameter is set.
  • Any recommendation for a OpenGL 3D library?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied