Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • [ Solved ] From HTML to QString Utf8

    3
    0 Votes
    3 Posts
    8k Views
    B
    This: @QTextDocument document; document.setHtml(text); document.toPlainText(); @ does the trick. Thanks !
  • Qt and SQLite -- Build issues

    4
    0 Votes
    4 Posts
    4k Views
    J
    [quote author="Lukas Geyer" date="1311958856"]Remove @ #include <QtSql/QSQLiteDriver> @ and make sure that @ QT += sql @ is in your .pro file.[/quote] It builds now! Thank you so much! :D :D
  • How to share one QFileSystemModel with two Views?

    4
    0 Votes
    4 Posts
    2k Views
    EddyE
    Have a look at this "wiki page":http://developer.qt.nokia.com/faq/answer/how_can_i_implement_my_own_proxy_model_that_is_more_advanced_than_just_sort. It's almost what you want for the proxy. They use QStandardItemModel instead, but it can give you a good start.
  • Swap widgets in place, without destroying them in layout.

    17
    0 Votes
    17 Posts
    17k Views
    M
    Ah, very good. Thanks a lot! That makes sense.
  • QVariantMap/QObject store bag

    16
    0 Votes
    16 Posts
    11k Views
    G
    bq. If you are so certain about your design, then why come here and ask for advice on it in the first place? Because I need to somebody help me find possible troubles which I cannot see. I told - I did not use QMap before. Thanx for advices. All was helpful.
  • [solved] Qt on Solaris10

    11
    0 Votes
    11 Posts
    6k Views
    M
    If you've got it working, please be kind and add [Solved] to the title of the original post. Thanks!
  • SOLVED: More randomness

    4
    0 Votes
    4 Posts
    3k Views
    C
    Yep! That's what I did.
  • Problems with Qt Concurrent mapped

    3
    0 Votes
    3 Posts
    3k Views
    F
    i Thank u for your answer, but i solved it using pthread instead. I start one thread per picture to work on, than use pthread_join to track the progress of the work being done. Thanks for the answer anyway.
  • RTSP with Phonon / QtNetwork

    4
    0 Votes
    4 Posts
    8k Views
    D
    Also you can use "VLC-QT":http://qt-apps.org/content/show.php?content=133649 without Phonon.
  • GUI design opinion

    3
    0 Votes
    3 Posts
    2k Views
    A
    Thanks, I didn't know about QTabBar. That's one of the problems that I have with Qt Creator which is that the Design mode doesn't give access to some widgets and QTabBar is one of them... Regarding the design itself, having mentioned Qt Creator above, I am obviously familiar with it. I don't, however, fancy buttons for the modes or, rather, not in the way it has been done in Qt Creator. They take too much space (and the more space I have the better), hence I thought of using some sideways text. Should that sideways text be a button, a tab or whatever doesn't really matter to me, as long as it takes as little space as possible. As for the list open files, the issue I have with this is that once again it does take a lot of GUI space, especially if you have only a handful of files open (which tends to be the norm for the kind of application I am working on). In fact, another similar application I was working did it that way and people complained about it for the reason I just gave. Hence, it was thought best to have a QTabWidget in r0c1. Anyway, I am still testing things, so will see how it goes...
  • How to create .tlb file in Qt

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Regarding registering QT dll using regsvr32

    7
    0 Votes
    7 Posts
    4k Views
    I
    Hi Actually i want to use this QT dll in C#. But whn i try to add reference of this dll in C# it is not adding.
  • PHONON: should play sounds simultaneously

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Compiling taglib on Qt

    3
    0 Votes
    3 Posts
    4k Views
    S
    Thanks, It worked for me on addition of -ltag -ltag_c to LIBS in make file
  • 0 Votes
    12 Posts
    15k Views
    G
    I see. Well in fact, I'm using both composition and aggregation, so QObjects as children might not really work for me... Thank you
  • QObject::connect question

    9
    0 Votes
    9 Posts
    8k Views
    C
    [quote author="Andre" date="1311919259"]That new syntax is not going to help anybody as long as it is not in any released Qt version.[/quote] Yes, but it's still a good way/article to learn Qt :D
  • [SOLVED] Erase tool

    12
    0 Votes
    12 Posts
    6k Views
    A
    Yep, this helps. As I was thinking system cursor can;t be resized. silver47, thanks for the help and code example.
  • QDataWidgetMapper && QSqlRelationalTableModel && QComboBox

    10
    0 Votes
    10 Posts
    7k Views
    P
    [quote author="Luca" date="1311879787"][quote author="pate" date="1311819665"]After addMapping to QComboBox,you should do this: @ QSqlTableModel *relationalModel = tableModel->relationModel(i); ui->menuComboBox->setModel(relationalModel); ui->menuComboBox->setModelColumn(relationalModel->fieldIndex("menu"); @ [/quote] What is "i" in : @ QSqlTableModel *relationalModel = tableModel->relationModel(i); @ ?[/quote] Sorry!It's the index of the field "menu". Here it should be @ QSqlTableModel *relationalModel = tableModel->relationModel(tableModel->fieldIndex("menu"));@
  • SOLVED: notch locations w/ QDial

    4
    0 Votes
    4 Posts
    2k Views
    M
    No problem! If that works for you, please edit your original post and add [Solved] to the beginning of the title. Thanks!
  • Reimplementing winEvent: getting stuck in API call

    20
    0 Votes
    20 Posts
    11k Views
    J
    I have changed the way I interface the COM object, and now with this code: @bool Bridge::winEvent(MSG *message, long *result) { if( message->message == WM_USER && message->hwnd == winId() ) { myQAxObject->dynamicCall("Play()"); return true; } // give the event to qt return false; }@ I get this error: "QAxBase: Error calling IDispatch member Play: Unknown error" While if I call myQAxObject->dynamicCall("Play()"); from anywhere else in my code it works.