Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 457.9k Posts
  • MainWindow to new Dialog window connection/calling

    5
    0 Votes
    5 Posts
    5k Views
    G
    You can use "Qt Designer":http://developer.qt.nokia.com/doc/qt-4.7/designer-manual.html to design your user interface. The docs show you how to integrate the UI in your C++ class.
  • Resize QScrollArea to fit content

    2
    0 Votes
    2 Posts
    6k Views
    S
    Addition: Just tried to add a Layout to the Manager and added the widgets to the Layout which made the Scrollbar work like a charm. But i can't use a Layout bcs I'm using drag&drop to move the added Widgets and using a Layout would overwrite positions of the widgets when the Manager-Window is resized. This makes me even more confused :/ Someone help me fix this please!
  • 0 Votes
    5 Posts
    6k Views
    A
    @Andre : Yes of course, it is an evidence (to fix any crashes)! I completely agree with you. But the crash I was talking about was introduced on purpose in the application to test/verify the behavior of the xml trace writer in such harsh condition (I stated "for example" in my original post - Sorry, I should have been a lot more explicit on this point).
  • Auto adjust size (width) of QDockWidget

    8
    0 Votes
    8 Posts
    8k Views
    S
    So, the theory is this: As long as there is a horizontal scrollbar increase the width of dockwidget. Now how to implement it?
  • How to do for de aplication recognize the gamePAD USB???

    2
    0 Votes
    2 Posts
    3k Views
    jensen82J
    Hi! i would suggest you to try SDL-Library for C++. Maybe that fits your needs. "LibSDL":http://www.libsdl.org/ "JoyStick":http://wiki.libsdl.org/moin.cgi/CategoryJoystick Wish you much success!
  • How to check if the QTableWidget has similar rows

    7
    0 Votes
    7 Posts
    3k Views
    I
    Hi Gerolf Can you please show me with example of 3 rows & 3 columns. How to use model/view for finding rows with same data.
  • [Solved] Keep my app running...

    4
    0 Votes
    4 Posts
    2k Views
    D
    @Gerolf, thank you very much, it worked :)
  • How to handle arrow keys events?

    3
    0 Votes
    3 Posts
    2k Views
    I
    Thanks Lukas
  • Qtbrowserplugin fails in IE

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Split] Sqlite database deploying

    2
    0 Votes
    2 Posts
    2k Views
    D
    I've moved this to another thread from "this one":http://developer.qt.nokia.com/forums/viewthread/4583/ Don't use old threads for new not really related questions, please. About your question. If you need read-only database, then you can add it to qrc (not good solution, really). Also you can simply copy it with your executable and other files (as I udnerstood you also have qmls there). The best way that I see is to populate it on first start. It is not hard. All you need is to check if there is file at needed plave and if not, create it and populate with sql queries.
  • <solved> Errors: C2143, C4430 but it is included

    5
    0 Votes
    5 Posts
    6k Views
    H
    That has solved it, thanks!
  • Can we implement mouse hover manually?

    2
    0 Votes
    2 Posts
    2k Views
    L
    "QMouseEvent":http://doc.qt.nokia.com/latest/qmouseevent.html
  • "powered by" icon/image

    3
    0 Votes
    3 Posts
    3k Views
    F
    That suffices!
  • [Solved] How to make static link app which compress qt resource data?

    6
    0 Votes
    6 Posts
    3k Views
    Z
    well, thanks for all advices. Actually, I would like to make for embedding font in application. Some text files to load from application to make single executable file .. Thanks
  • QPlainTextEdit syntax highlighting mouse selections

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Resizing and moving a QDockWidget when it is undocked

    5
    0 Votes
    5 Posts
    6k Views
    J
    Thanks for your help. However I'm not sure I understood everything. As I said, the adjustSize() call works: the widget is correctly resized. The problem is with the move() call. Do you suggest me to replace it with a setGeometry()?
  • MySql plugin for windows

    14
    0 Votes
    14 Posts
    13k Views
    D
    Thank you for you answers. I guess, I have to install qt and mysql on the same disk and see, what will happen. Because in command prompt for some reason I can't change the disk letter. May be only problem was in a drive letter. I'm not sure. In linux it wasn't that hard.
  • Qt LGPL and EPL compatibility

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Zooming detail and resolution on QGraphicsView

    4
    0 Votes
    4 Posts
    5k Views
    S
    Are they images your loading from disk or ones you're creating in code? If they're from disk then you can use a tool like Inkscape to generate them, but if you're doing it from code I wouldn't know where to start! Just changing the format won't quite do it all, you will still have to redraw the vector image to the new scale, but that should just be a simple QImage call. I don't think just zooming in the graphics view will be enough as it will probably just scale the pre-drawn image.
  • Inheritance of plugins with QPluginLoader not working?

    3
    0 Votes
    3 Posts
    4k Views
    T
    Thanks Lukas, I understand the problem. The source of it was in the full project. In there I had the following @ class SurfaceMeshIO : public ModelIO{ Q_INTERFACES(ModelIO) ... @ @ // Source of error class io_surfacemesh_off : public QObject, public SurfaceMeshIO{ Q_OBJECT Q_INTERFACES(SurfaceMeshIO) .... @ I was assuming that since "io_surfacemesh_off" inherited from SurfaceMeshIO, the Q_INTERFACE(ModelIO) was already taken care of from its superclass. I have to admit, it's kind of weird that I have to do what follows: @ // Correction class io_surfacemesh_off : public QObject, public SurfaceMeshIO{ Q_OBJECT Q_INTERFACES(SurfaceMeshIO) Q_INTERFACES(ModelIO) .... @