Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.0k Posts
  • What's relationship between viewport(), widget() and QScrollArea

    3
    0 Votes
    3 Posts
    28k Views
    F
    Think of the viewport() as a rectangle through which you are looking at the widget(). The scrollbars determine above which part of the widget() the viewport() is floating. It is even possible to use a custom viewport. This is mostly used in the graphics scene/view framework, where it is used to set the viewport to an QGLWidget. However, you can also make a custom widget that allows you to zoom in or out on a widget using a transformation matrix. There are a lot of different possibilities by using the viewport.
  • QT Command Prompt and src dir in QT SDK 1.1

    5
    0 Votes
    5 Posts
    9k Views
    K
    Thanks Zlatomir. I am developing an application and want to use mysql or ms sql server as database so I want to activate drivers for them. Can you please tell me how to do this in QT SDK 1.1?
  • Problem Activating SQL Drivers

    9
    0 Votes
    9 Posts
    5k Views
    K
    Can anyone please tell me how to use mysql or ms sql server with qt. I use QT SDK 1.1 Any Help will be appreciated.
  • 0 Votes
    5 Posts
    6k Views
    T
    It seems that the Mac os X Finder can show system services. Anybody knows if I can use the QT system framework for this: http://doc.qt.nokia.com/qtmobility-1.0-tp/service-frameworks.html Cheers Tom
  • DrawPixmap slower in QT 4.7.1

    2
    0 Votes
    2 Posts
    3k Views
    W
    Can you post a full testcase so it can be built and run through a profiler?
  • QGraphicsView/QGraphicsScene

    2
    0 Votes
    2 Posts
    5k Views
    W
    If you want a single image, AFAIK, you'll need to use QGraphicsItem (or QGraphicsWidget). Setting the image as a background brush will, as you've observed, result in it being tiled, because it is painted across the entirety of the background.
  • Incorrect drawn images and checkboxes in table

    7
    0 Votes
    7 Posts
    4k Views
    S
    ohh! thanks for advice, I tried to obtain dimensions from style and it worked!!! In case some needs it here is what I did: @tempX += QApplication::style()->subElementRect(QStyle::SE_CheckBoxClickRect,&aOption).x();@
  • Another QSqlDatase connection question

    7
    0 Votes
    7 Posts
    3k Views
    K
    lol..i can't believe i didn't think of that, it's exactly how it's done in the example. many thanks!
  • FindFiles without GUI

    8
    0 Votes
    8 Posts
    4k Views
    N
    [quote author="peppe" date="1295910898"]Why are you using QFileSystemModel instead of QDirIterator?[/quote] Thanks, Peppe, that's the winning idea by now:)) I came from the direction of Borland's c++Builder, and QDirIterator is closest to the good old FindFirst/FindNext. I started flirting with Qt Creator 2 weeks ago, and it's hard to review the so many classes. Sometimes the real one can't be found...
  • QVector of pointers

    3
    0 Votes
    3 Posts
    7k Views
    W
    i didnt think it would, thanks
  • How to CenterScreen the Application?

    7
    0 Votes
    7 Posts
    7k Views
    K
    Thanks Volker. It's working now:-)
  • How to partially repaint like what InvalidateRect does in win32

    3
    0 Votes
    3 Posts
    5k Views
    F
    Thanks, I'll give a try. [quote author="Gerolf" date="1295865248"]you can use "QWidget::update(const QRect& rect)":http://doc.qt.nokia.com/latest/qwidget.html#update-3[/quote]
  • Docking QToolBar only next to another ToolBar, not below or on top.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Witch is the best why to navigate between windows ??

    2
    0 Votes
    2 Posts
    2k Views
    D
    Not sure that I clearly understood what you want but I think you should read about "QMdiArea":http://doc.qt.nokia.com/4.7/qmdiarea.html in Qt Assistant.
  • OpenSsl in Qt

    5
    0 Votes
    5 Posts
    4k Views
    R
    I'm sorry, I'm a linux developer mainly, so I'm not really sure. I suspect putting them in your qt directory or the application's directory will be best. That way they won't interfere with any other openssl dlls you have on the system.
  • 0 Votes
    6 Posts
    4k Views
    D
    [quote author="Volker" date="1295213704"]Sometimes you have to re-run qmake to catch up changes.[/quote] This is probably the correct solution. I've done this several times myself. The standard make commands ( make, make clean, etc ) don't remake the MOC objects. Running qmake rebuilds the MOC objects for your code (since it inherits QObject), and then when you run a make, it is able to properly link to the MOC objects.
  • Owner-draw QGraphicsItem Problem

    7
    0 Votes
    7 Posts
    4k Views
    A
    And that is a problem because...?
  • QDom coloring

    8
    0 Votes
    8 Posts
    3k Views
    G
    I don't know the internas of your program, but at some time, you create your items. and there must be some logic on how to build them. And with the same logic, it should be possible to find them. That is something, you have to solve and that is not a Qt problem, more a logical one.
  • [Moved]Not able to use updateGL()

    2
    0 Votes
    2 Posts
    2k Views
    D
    Hi chintu, there are two problems. Change resizeGL() to: @ void resizeGL(int Height, int Width) { glViewport(0, 0, Width, Height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-200, 200, -200, 200, -1, 1); glMatrixMode(GL_MODELVIEW); }; @ OpenGL need a box for the scenario (glOrtho) and viewport was wrong. In paintGL(), your lines for drawing are wrong, change like this: @ glVertex2f(Pt[counter+1].getsx(),Pt[counter+1].getsy()); @ As hint: you need counter+i in x and y coordinate!
  • [Solved]JPEG 2000 plugin

    3
    0 Votes
    3 Posts
    3k Views
    D
    Thanks a lot!!!!!!!