Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • What the best way to use the class generated by qt designer?

    3
    0 Votes
    3 Posts
    1k Views
    P
    i use it with pyqt, and i just have the designer and then we use that file/ class. for basic ui, usually one window allocation, (mostly a qdialog). and not sure if are advantage or disadvantage beaten methods.
  • OLE Linker problem

    7
    0 Votes
    7 Posts
    3k Views
    S
    Hi hskoglund Your Post bq. Hi, insert LIBS += ole32.lib in your .pro file and run qmake, that should do it. solved my problem. Thanks so much.
  • Why cant I pass the "ui" variable as a pointer?

    12
    0 Votes
    12 Posts
    8k Views
    A
    Ok. Thank you very much. Problem solved.
  • Where does QtWebView stores cookies

    6
    0 Votes
    6 Posts
    1k Views
    raven-worxR
    [quote author="karim24" date="1421883152"] do I have to download the source code, make modifications then build it again.[/quote] of course you have to!
  • Leak fest

    2
    0 Votes
    2 Posts
    629 Views
    JKSHJ
    Hi, I recommend talking to the Qt engineers at the "Interest mailing list":http://lists.qt-project.org/mailman/listinfo/interest (you need to subscribe first)
  • QtCreator cannot load QMYSQL driver

    3
    0 Votes
    3 Posts
    993 Views
    D
    How about showing the code on how you open the database
  • Can Qt Convert jpg images to the BMP format?

    Solved
    8
    0 Votes
    8 Posts
    10k Views
    R
    The reason why it didn't work before is I changed the image's suffix from jpg to bmp subjectively,then use QImage::​save() to convert format to bmp, thus it faild, after correct this mistake ,it worked now! BTW,for @bool QImage::​save(const QString & fileName, const char * format = 0, int quality = -1) const@ If format is 0, QImage will attempt to guess the format by looking at fileName's suffix,so format is prior to fileName's suffix.
  • PdhOpenQuery eror

    10
    0 Votes
    10 Posts
    4k Views
    R
    Thank you.
  • How can I have access to values of my Mainwindow in another window?

    7
    0 Votes
    7 Posts
    3k Views
    A
    plotDialog dialog(this); Above line mostly likely will result in a big baraboom when dialog is going out of scope. It will result in deleting dialog twice. If it works I guess there is something wrong with platform or compiler. You either do not provide parent or use operator new when creating QObject subclasses. Counting that exec was called modal behavior is desired, so @ /* Instantiate object of plotDialog class named dialog with no parent */ plotDialog dialog(); .... @
  • [Solved] QTableView (QTableWidget) removeRow removes several rows

    9
    0 Votes
    9 Posts
    2k Views
    F
    Still working wit QT designer so the constructor is changing frecuently. On the final version i will put it there all the connections.
  • [Solved] Dragging from a QTableView to a QTreeView - order of events

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    You're welcome ! Since you have your model working now, please update the thread title prepending [solved] so other forum users my know a solution has been found :)
  • QWarn in qtest does not print anything

    5
    0 Votes
    5 Posts
    2k Views
    G
    Yep, completely. I have now added a std::cout << of component.errors() (broken down into strings) and finally got the error message. Still, the QWARN is silent.
  • 0 Votes
    4 Posts
    1k Views
    SGaistS
    You're welcome ! Since it's all clear now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
  • Custom QGraphicsView

    3
    0 Votes
    3 Posts
    2k Views
    SGaistS
    Hi, It's because your class is called CustomWidget and not CustomGraphicsView
  • Entry Point Not Found (Looking for QString in wrong DLL)

    9
    0 Votes
    9 Posts
    3k Views
    K
    [quote author="ckakman" date="1421870146"]Well, some Google results were about copying wrong DLLs. I don't have any more suggestions, maybe someone else here had that problem and can help you.[/quote] Yes, I saw the same results and there were some of those same problems on this forum as well, I looked at about 50 different issues regarding this before I finally made this thread. Thanks for your help. [quote author="hskoglund" date="1421870305"]Hi, suggest to make your BarApplication run, first try to simplify, build it without using any functionality from your AxlCore library, for example just try some QStrings within the BarApplication. Once BarApplication is running fine, then try to include stuff from AxlCore. If you now get QString DLL errors, you'll know it's because of something in AxlCore and not in BarApplication. Also, you can download Dependency Walker, it's a useful tool for debugging DLL errors. [/quote] Yes, this I did do as well and I think you're right. I think it has something to do with AxlCore. I ran a simple stdout piece of code that outputs "Hello World" in BarApplication to the console by: @#include <iostream> int main(argc, char **argv) { QString str("Hello World"); std::cout << qPrintable(str) return 0; }@ And this does indeed output Hello World. I saw a couple recommendations about this and I actually downloaded Dependency Walker as well. Turns out it helped me discover that I needed to also include: icudt53.dll icuin53.dll icuuc53.dll Which was good to know. Thanks for the tip. I'll try to see if I can try and use other classes in AxlCore and see if I can narrow in on the issue. In the meantime if anyone else has any ideas they are greatly appreciated.
  • QTableWidget grid lines are misaligned

    4
    0 Votes
    4 Posts
    2k Views
    raven-worxR
    well, some people may see it as intended since it adds an effect like the header widgets are raised above the view's content
  • Read BeagleBone Analog Input (C++)

    3
    0 Votes
    3 Posts
    3k Views
    C
    Hi SGait, Thanks for your reply. I will try QTimer to see how it works and give you a feedback. Regards,
  • [Solved] QDate Comparision issue

    4
    0 Votes
    4 Posts
    1k Views
    sierdzioS
    I am glad to hear that. I'll mark the thread as solved. Happy coding!
  • [Solved] Can't catch Enter(Return) Keypressed event

    3
    0 Votes
    3 Posts
    5k Views
    R
    Hi raven-worx, thanks for your answer. I've see that too: http://qt-project.org/wiki/How_to_catch_enter_key and finally it works. I needed to install the filter in every widget I need.
  • [Solved] How can I change the app resolution

    3
    0 Votes
    3 Posts
    3k Views
    R
    Hi, avaibleGeometry() didnt work, just did the same as screenGeometry. So I had to fix is with setFixedSize(), thank you.